﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Whir.Common.WebHelper;
using System.Collections.Specialized;
using System.Text.RegularExpressions;

public partial class Whir_System_Module_CommonContents_RecycleBinContentManage : System.Web.UI.Page
{
    protected int TypeID, ModelID, ModelFormID;
    protected string Where;

    protected void Page_Load(object sender, EventArgs e)
    {
        RoleHelper.IsLogin();    //登录判断

        ModelID = NetRequest.GetQueryInt("ModelID");
        ModelFormID = NetRequest.GetQueryInt("ModelFormID");
        TypeID = NetRequest.GetQueryInt("TypeID");

        if (!IsPostBack)
        {
            if (TypeID != 0)
            {
                //初始化搜索条件
                ContentSearch1.ModelFormID = ModelFormID;
                ContentSearch1.TypeID = TypeID;

                //初始化内容管理条件
                Where = " TypeID =" + TypeID;
                CommonContentManage1.ModelID = ModelID;
                CommonContentManage1.ModelFormID = ModelFormID;
                CommonContentManage1.TypeID = TypeID;
                CommonContentManage1.Where = Where;
                CommonContentManage1.Settings = "";
            }
        }
    }
}
